(POPUPDIALOGWAIT "This short tutorial explains the basics of how the stack works. The stack is where spells and abilities wait to resolve after they've been played." 1)
(PLAYUNTIL "main0")
(POPUPDIALOGWAIT "If you want to leave the tutorial at any time, just right-click in the play area." 1)
(POPUPDIALOGWAIT "Let's skip ahead a few turns." 1)
; This supression stops it from showing the player stacking their deck
(SUPRESSSOUNDS)
(SUPRESSUPDATES)
(STEP 20)
(ENABLEUPDATES)
(ENABLESOUNDS)
; Now we want it to show the game advancing without sound
(SUPRESSSOUNDS)
(STEP 5)
(ENABLESOUNDS)
; This supresses the opponent stacking their deck
(SUPRESSSOUNDS)
(SUPRESSUPDATES)
(STEP 12)
(ENABLEUPDATES)
(ENABLESOUNDS)
; Continue the advancement while ONLY supressing sound to the pt. where the tutorial will begin
(SUPRESSSOUNDS)
(STEP 13)
(ENABLESOUNDS)
(POPUPDIALOGWAIT "You have a Grizzly Bears in play. It's a 2/2 creature." 2)
(STEP1)
(STEP1)
(POINTTO "shock" "stack" 1)
(POPUPDIALOGWAIT "During your turn, your opponent taps a mountain and plays Shock targeting your Bears. Shock goes on the stack. In Magic Online, the stack is on the lower left part of the screen." 2)
(POPUPDIALOGWAIT "Point to the Shock on the stack. You'll see an arrow from Shock to the Bears to show the Bears are Shock's target." 2)
(POPUPDIALOGWAIT "The Bears have only 2 toughness, so Shock would destroy them." 2)
(POPUPDIALOGWAIT "Fortunately, you have a Giant Growth in your hand. It gives a creature +3/+3 until the end of the turn. Giant Growth is an instant, so you can play it almost any time you want -- even while Shock is on the stack!" 2)
(POPUPDIALOG "Click a forest in play to pay for Giant Growth." 2)
(POINTTO1 "forest" "pinplay" 3)
(WAITFORCLICK "forest" "pinplay" 3)
(STEP1)
(POPUPDIALOG "Click the Giant Growth card in your hand and drag it over the Grizzly Bears." 2)
(POPUPDIALOGWAIT "Giant Growth goes on the stack, too. It's on top of Shock." 2)
(STEP1)
(POPUPDIALOGWAIT "Your opponent didn't play any more instants, so the top spell on the stack resolves. That's your Giant Growth. The Grizzly Bears are 5/5 for the rest of the turn." 2)
(POPUPDIALOG "Now Shock is the top spell on the stack. You don't want to play another instant now, so click @qOK.@q" 2)
(POINTTO1 "prompt" 1)
(WAITFORCLICK "ok" "prompt")
(STEP1)
(STEP1)
(POPUPDIALOGWAIT "Your opponent didn't play anything else, so Shock resolved. It dealt 2 damage to your Bears. See the red 2 in the lower left corner of the Bears card?" 2)
(POPUPDIALOGWAIT "Your Grizzly Bears survived. You saved them from Shock with your Giant Growth." 2)
(STEP1)
; new stuff added starting here
(POPUPDIALOGWAIT "Let's move ahead to your next run. This time, you're going to play Giant Growth while the stack is empty." 1)
; supress the stacking of the opponent's deck
(SUPRESSSOUNDS)
(SUPRESSUPDATES)
(STEP 8)
(ENABLEUPDATES)
(ENABLESOUNDS)
; now that the stacking is over, just supress the sounds until the correct point the the tutorial is reached
(SUPRESSSOUNDS)
(STEP 10)
(ENABLESOUNDS)
(POPUPDIALOG "Click a forest in play to pay for Giant Growth." 2)
(POINTTO1 "forest" "pinplay" 4)
(WAITFORCLICK "forest" "pinplay" 4)
(STEP1)
(POPUPDIALOG "Click the Giant Growth card in your hand and drag it over the Grizzly Bears." 2)
(POPUPDIALOGWAIT "Giant Growth goes on the stack." 2)
(STEP 2)
(POINTTO "stack" "shock" 1)
(POPUPDIALOGWAIT "Now your opponent plays Shock targeting the Grizzly Bears. It's on top of Giant Growth." 2)
(POPUPDIALOG "You don't have another instant to play, so click @qOK.@q" 2)
(POINTTO1 "prompt" 1)
(WAITFORCLICK "ok" "prompt")
(STEP1)
(POPUPDIALOGWAIT "Shock resolved first. It dealt 2 damage to the Grizzly Bears. The Bears had only 2 toughness, so they went to your graveyard." 2)
(STEP1)
(POPUPDIALOGWAIT "Now Giant Growth resolves, but the Bears are already gone. It can't save them." 2)
(STEP1)
(POPUPDIALOGWAIT "The stack lets you play instants and abilities in response to other spells and abilities. You'll find more information about how the stack works in Magic Online in Help." 2)
(POPUPDIALOGEND "That's the end of this tutorial." 1)